package cn.iocoder.yudao.module.warehouseoperationlog.controller.admin.warehouseoperationlog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 库房操作记录表（记录库房相关操作，支撑审计追溯） Response VO")
@Data
@ExcelIgnoreUnannotated
public class WarehouseOperationLogRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "操作类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "操作类型", converter = DictConvert.class)
    @DictFormat("warehouse_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer operationType;

    @Schema(description = "创建人")
    @ExcelProperty("创建人")
    private String creator;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
    @Schema(description = "库房名称")
    @ExcelProperty("库房名称")
    private String warehouseName;

    @Schema(description = "库房类型")
    @ExcelProperty("库房类型")
    private Integer type;

    @Schema(description = "库房容量")
    @ExcelProperty("库房容量")
    private Integer capacity;

    @Schema(description = "已使用数量")
    @ExcelProperty("已使用数量")
    private Integer usedCount;


}
